package com.ecode.ecny.dto.convert;

import com.ecode.ecny.base.ReqBody;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName ConvertInReqDTO
 * @Author mjlft
 * @Date 2021/8/12 21:18
 * @Version 1.0
 * @Description 兑回请求类
 */
@Data
public class ConvertInReqDTO extends ReqBody {

    //付款方账号
    @NotBlank(message = "付款方账号不能为空")
    @Length(max = 34, message = "付款方账号长度超34")
    private String payerAcct;

    //付款方名称
    @NotBlank(message = "付款方名称不为空")
    @Length(max = 128, message = "付款方名称长度超128")
    private String payerAcctName;

    //收款方账号
    @NotBlank(message = "收款方账号不能为空")
    @Length(max = 34, message = "收款方账号长度超34")
    private String payeeAcct;

    //收款方名称
    @NotBlank(message = "收款方名称不为空")
    @Length(max = 128, message = "收款方名称长度超128")
    private String payeeAcctName;

    //货币类型
    @NotBlank(message = "货币类型不能为空")
    @Length(max = 3, message = "货币类型长度超3")
    private String ccy;

    //金额
    @NotBlank(message = "金额不能为空")
    @Length(max = 19, message = "金额长度超19")
    private String amount;
}
